<!DOCTYPE html>
<html>
<head>
	<title></title>
	<link href="__PUBLIC__/bootstrap/css/bootstrap.min.css" rel="stylesheet">
	<link rel="stylesheet" href="__PUBLIC__/bootstrap/css/bootstrap-theme.min.css">
    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="__PUBLIC__/bootstrap/js/jquery.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="__PUBLIC__/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<!-- 自动接收update方法传来的user变量用户名：{$user.username}；
电话：{$user.tele|default='没有电话号码'}；-->
<form name="f1" method="post" action="doupdate" enctype="multipart/form-data" class="form-horizontal">
<h1 align="center">用户修改</h1>
	<input type="hidden" name="id" value="{$user.id}"></input>
	<div class="form-group">
		<label for="pic" class="col-md-2 control-label">头像</label>
		<div class="col-md-10">
		    <img src="__PUBLIC__/uploade/photo/{$user.photo}" alt="图像不存在" width=100px;>
			<input type="file" name="photo" />
		</div>
	</div>
	<div class="form-group">
		<label for="inputName" class="col-md-2 control-label">用户名</label>
		<div class="col-md-10">
		<input type="text" class="form-control" id="username"  name="username" value="{$user.username}" placeholder="Name"/>
	</div>
	</div>
	<div class="form-group">
		<label for="inputpass" class="col-md-2 control-label">密码</label>
		<div class="col-md-10">
		<input type="password" class="form-control" id="pass"  name="pass" value="{$user.pass}" placeholder="pass"/>
	</div>
	</div>
	<!-- <div class="form-group">
		<label for="inputpass" class="col-md-2 control-label">再次输入密码</label>
		<div class="col-md-10">
		<input type="password" class="form-control" id="pass2"  name="pass2" value="{$user.pass}" placeholder="pass2"/>
	</div>
	</div> -->
	<div class="form-group">
		<label for="inputName" class="col-md-2 control-label">真实性名</label>
		<div class="col-md-10">
		<input type="text" class="form-control" id="realname"  name="realname" value="{$user.realname}" placeholder="Name"/>
	</div>
	</div>

	<div class="form-group">
		<label for="Email" class="col-md-2 control-label">邮箱</label>
		<div class="col-md-10">
		<input type="email" class="form-control" id="email"  name="email" value="{$user.email}" placeholder="email"/>
	</div>
	</div>
	<div class="form-group">
		<label for="tele" class="col-md-2 control-label">电话</label>
		<div class="col-md-10">
		<input type="tel" class="form-control" id="tele"  name="tele" value="{$user.tele}" placeholder="tele"/>
	</div>
	</div>
	<div class="form-group">
		<label for="inputintro" class="col-md-2 control-label">自我介绍</label>
		<div class="col-md-10">
			<textarea name="intro" cols="50" rows="5" class="form-control" value="">{$user.intro}</textarea>
		</div>
	</div>	


		<div class="form-group">
        <label for="state" class="col-md-2 control-label">状态</label>
        <div class="col-md-2">
            <select class="form-control" name="state" id="state">
                <option value="0"<if condition="$user.state eq 0">selected</if>>禁用</option>
                <option value="1"<if condition="$user.state eq 1">selected</if>>普通</option>
                <option value="2"<if condition="$user.state eq 2">selected</if>>禁言</option>
            </select>
        </div>
    </div>

	
	<div class="form-group">
		<label class="col-md-2 control-label">明星作者</label>
		<div class="col-md-10">
			<label class="radio-inline">
				<input type="radio" name="isstar" id="isstar" value="1"<if condition="$user.isstar eq 1">checked</if>>是
			</label>
			<label class="radio-inline">
				<input type="radio" name="isstar" id="isstar" value="0"<if condition="$user.isstar eq 0">checked</if> >否
			</label>
		</div>
	</div>	
	

	<div class="form-group">
		<label class="col-md-2 control-label">首页推荐</label>
		<div class="col-md-10">
			<label class="radio-inline">
				<input type="radio" name="isfirst" id="isfirst" value="1" <if condition="$user.isfirst eq 1">checked</if>>是
			</label>
			<label class="radio-inline">
				<input type="radio" name="isfirst" id="isfirst" value="0" <if condition="$user.isfirst eq 0">checked</if>>否
			</label>
		</div>
	</div>	
     

     <div class="form-group">
		<label for="inputName" class="col-md-2 control-label">审核信息</label>
		<div class="col-md-10">
		<input type="text" class="form-control" id="verifyinfo"  name="verifyinfo" value="{$user.verifyinfo}" placeholder="verifyinfo"/>
	</div>
	</div> 
		
		
		
		<div class="form-group">
		<div class="col-sm-offset-2 col-sm-10">
			<input class="btn btn-default" type="submit" value="提交">
			<input class="btn btn-default" type="reset" value="重置">
		</div>
	</div>
</form>
</body>
</html>